package com.h3c.nem.entity;

import java.util.Date;
import javax.persistence.*;
    import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: SdOperLog
 *
 * @Author: l22886
 * @Date: 2022-01-19
 * Description: sd_oper_log 实体
 * Version: 1.0
 */
@ApiModel(value="SdOperLog对象", description="")
@Table(name = "sd_oper_log")
public class SdOperLog {


    @ApiModelProperty(value = "操作记录ID")
    @Column(name = "oper_id")
    private String operId;

    @ApiModelProperty(value = "系统Id")
    @Column(name = "app_id")
    private String appId;

    @ApiModelProperty(value = "用户工号")
    @Column(name = "oper_user_id")
    private String operUserId;

    @ApiModelProperty(value = "用户姓名")
    @Column(name = "oper_user_name")
    private String operUserName;

    @ApiModelProperty(value = "操作时间")
    @Column(name = "request_time")
    private Date requestTime;

    @ApiModelProperty(value = "访问IP")
    @Column(name = "client_ip")
    private String clientIp;

    @ApiModelProperty(value = "请求地址")
    @Column(name = "request_url")
    private String requestUrl;

    @ApiModelProperty(value = "请求参数")
    @Column(name = "request_param")
    private String requestParam;

    @ApiModelProperty(value = "请求用时")
    @Column(name = "cost_ms")
    private Long costMs;

    @ApiModelProperty(value = "处理结果：1 成功；2 失败；")
    @Column(name = "request_result")
    private Integer requestResult;

    public String getOperId() {
        return operId;
    }

    public void setOperId(String operId) {
        this.operId = operId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getOperUserId() {
        return operUserId;
    }

    public void setOperUserId(String operUserId) {
        this.operUserId = operUserId;
    }

    public String getOperUserName() {
        return operUserName;
    }

    public void setOperUserName(String operUserName) {
        this.operUserName = operUserName;
    }

    public Date getRequestTime() {
        return requestTime;
    }
    public void setRequestTime(Date requestTime) {
        this.requestTime = requestTime;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    public String getRequestParam() {
        return requestParam;
    }

    public void setRequestParam(String requestParam) {
        this.requestParam = requestParam;
    }

    public Long getCostMs() {
        return costMs;
    }

    public void setCostMs(Long costMs) {
        this.costMs = costMs;
    }

    public Integer getRequestResult() {
        return requestResult;
    }

    public void setRequestResult(Integer requestResult) {
        this.requestResult = requestResult;
    }

    @Override
    public String toString() {
        return "SdOperLog{" +
                "operId=" + operId +
                ", operUserId=" + operUserId +
                ", operUserName=" + operUserName +
                ", requestTime=" + requestTime +
                ", clientIp=" + clientIp +
                ", requestUrl=" + requestUrl +
                ", requestParam=" + requestParam +
                ", costMs=" + costMs +
                ", requestResult=" + requestResult +
                "}";
    }
}
